package review.chapter03;

/**
 * Enjoy programming!!!
 * Time: 2021/12/22 -  21:48
 */
public class ATest {
    public static void main(String[] arsg) {
        Sub sb = new Sub();
        System.out.println(sb.method1());
    }
}

class Super {
    int x = 1, y = 2;

    int method1() {
        return x < y ? x : y;
    }
}

class Sub extends Super {
    int mothod1() {
        return x > y ? x : y;
    }
}